<?php

/*
	PIE Content Management System
	John Girata
	Licensed under the GNU General Public License version 3
*/

defined('PIESECVAR') or die('Restricted Access');

error_reporting(E_ALL);

require_once(CLASS_DIR . 'Controller.class.php');
require_once(CLASS_DIR . 'DatabaseHandler.' . $params->db_type . '.class.php');
require_once(CLASS_DIR . 'LoginHandler.class.php');
require_once(CLASS_DIR . 'ModuleHandler.class.php');

$controller = new Controller();
$db = new DatabaseHandler();
$login = new LoginHandler();
$module = new ModuleHandler();

// Get the ball rolling...
require_once(CLASS_DIR . 'ComponentHandler.class.php');
$com = new ComponentHandler();

// Print the page
$controller->print_page();

?>